/**
 * @author zhouzhiheng98@foxmail.com 2020-07-28 10:23:11
 */
public class StaticField {
    public static void main(String[] args) {
        Person ming = new Person("Xiao Ming",12);
        Person hong = new Person("Xiao Hong",18);

//        ming.number = 80;
//        System.out.println(hong.number);
//        hong.number = 90;
//        System.out.println(ming.number);

        // 对于上面的代码，更好的写法是:
        Person.number = 90;
        System.out.println(Person.number);
    }
}
